#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Biome {
    pub name: &'static str,
    pub has_precipitation: bool,
    pub temperature: f64,
    pub downfall: f64,
    pub sky_color: u32,
    pub fog_color: u32,
    pub water_color: u32,
    pub water_fog_color: u32,
    pub foliage_color: Option<u32>,
    pub grass_color: Option<u32>,
    pub creature_spawn_probability: Option<f32>,
}
impl Biome {
    pub const BADLANDS: Biome = Biome {
        name: "badlands",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: Some(10387789),
        grass_color: Some(9470285),
        creature_spawn_probability: Some(0.03),
    };
    pub const BAMBOO_JUNGLE: Biome = Biome {
        name: "bamboo_jungle",
        has_precipitation: true,
        temperature: 0.9,
        downfall: 0.9,
        sky_color: 7842047,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const BASALT_DELTAS: Biome = Biome {
        name: "basalt_deltas",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 6840176,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const BEACH: Biome = Biome {
        name: "beach",
        has_precipitation: true,
        temperature: 0.8,
        downfall: 0.4,
        sky_color: 7907327,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const BIRCH_FOREST: Biome = Biome {
        name: "birch_forest",
        has_precipitation: true,
        temperature: 0.6,
        downfall: 0.6,
        sky_color: 8037887,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const CHERRY_GROVE: Biome = Biome {
        name: "cherry_grove",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.8,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 6141935,
        water_fog_color: 6141935,
        foliage_color: Some(11983713),
        grass_color: Some(11983713),
        creature_spawn_probability: None,
    };
    pub const COLD_OCEAN: Biome = Biome {
        name: "cold_ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4020182,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const CRIMSON_FOREST: Biome = Biome {
        name: "crimson_forest",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 3343107,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DARK_FOREST: Biome = Biome {
        name: "dark_forest",
        has_precipitation: true,
        temperature: 0.7,
        downfall: 0.8,
        sky_color: 7972607,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DEEP_COLD_OCEAN: Biome = Biome {
        name: "deep_cold_ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4020182,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DEEP_DARK: Biome = Biome {
        name: "deep_dark",
        has_precipitation: true,
        temperature: 0.8,
        downfall: 0.4,
        sky_color: 7907327,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DEEP_FROZEN_OCEAN: Biome = Biome {
        name: "deep_frozen_ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 3750089,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DEEP_LUKEWARM_OCEAN: Biome = Biome {
        name: "deep_lukewarm_ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4566514,
        water_fog_color: 267827,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DEEP_OCEAN: Biome = Biome {
        name: "deep_ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DESERT: Biome = Biome {
        name: "desert",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const DRIPSTONE_CAVES: Biome = Biome {
        name: "dripstone_caves",
        has_precipitation: true,
        temperature: 0.8,
        downfall: 0.4,
        sky_color: 7907327,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const END_BARRENS: Biome = Biome {
        name: "end_barrens",
        has_precipitation: false,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 0,
        fog_color: 10518688,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const END_HIGHLANDS: Biome = Biome {
        name: "end_highlands",
        has_precipitation: false,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 0,
        fog_color: 10518688,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const END_MIDLANDS: Biome = Biome {
        name: "end_midlands",
        has_precipitation: false,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 0,
        fog_color: 10518688,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const ERODED_BADLANDS: Biome = Biome {
        name: "eroded_badlands",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: Some(10387789),
        grass_color: Some(9470285),
        creature_spawn_probability: Some(0.03),
    };
    pub const FLOWER_FOREST: Biome = Biome {
        name: "flower_forest",
        has_precipitation: true,
        temperature: 0.7,
        downfall: 0.8,
        sky_color: 7972607,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const FOREST: Biome = Biome {
        name: "forest",
        has_precipitation: true,
        temperature: 0.7,
        downfall: 0.8,
        sky_color: 7972607,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const FROZEN_OCEAN: Biome = Biome {
        name: "frozen_ocean",
        has_precipitation: true,
        temperature: 0.0,
        downfall: 0.5,
        sky_color: 8364543,
        fog_color: 12638463,
        water_color: 3750089,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const FROZEN_PEAKS: Biome = Biome {
        name: "frozen_peaks",
        has_precipitation: true,
        temperature: -0.7,
        downfall: 0.9,
        sky_color: 8756735,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const FROZEN_RIVER: Biome = Biome {
        name: "frozen_river",
        has_precipitation: true,
        temperature: 0.0,
        downfall: 0.5,
        sky_color: 8364543,
        fog_color: 12638463,
        water_color: 3750089,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const GROVE: Biome = Biome {
        name: "grove",
        has_precipitation: true,
        temperature: -0.2,
        downfall: 0.8,
        sky_color: 8495359,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const ICE_SPIKES: Biome = Biome {
        name: "ice_spikes",
        has_precipitation: true,
        temperature: 0.0,
        downfall: 0.5,
        sky_color: 8364543,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: Some(0.07),
    };
    pub const JAGGED_PEAKS: Biome = Biome {
        name: "jagged_peaks",
        has_precipitation: true,
        temperature: -0.7,
        downfall: 0.9,
        sky_color: 8756735,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const JUNGLE: Biome = Biome {
        name: "jungle",
        has_precipitation: true,
        temperature: 0.9,
        downfall: 0.9,
        sky_color: 7842047,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const LUKEWARM_OCEAN: Biome = Biome {
        name: "lukewarm_ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4566514,
        water_fog_color: 267827,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const LUSH_CAVES: Biome = Biome {
        name: "lush_caves",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const MANGROVE_SWAMP: Biome = Biome {
        name: "mangrove_swamp",
        has_precipitation: true,
        temperature: 0.8,
        downfall: 0.9,
        sky_color: 7907327,
        fog_color: 12638463,
        water_color: 3832426,
        water_fog_color: 5077600,
        foliage_color: Some(9285927),
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const MEADOW: Biome = Biome {
        name: "meadow",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.8,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 937679,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const MUSHROOM_FIELDS: Biome = Biome {
        name: "mushroom_fields",
        has_precipitation: true,
        temperature: 0.9,
        downfall: 1.0,
        sky_color: 7842047,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const NETHER_WASTES: Biome = Biome {
        name: "nether_wastes",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 3344392,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const OCEAN: Biome = Biome {
        name: "ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const OLD_GROWTH_BIRCH_FOREST: Biome = Biome {
        name: "old_growth_birch_forest",
        has_precipitation: true,
        temperature: 0.6,
        downfall: 0.6,
        sky_color: 8037887,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const OLD_GROWTH_PINE_TAIGA: Biome = Biome {
        name: "old_growth_pine_taiga",
        has_precipitation: true,
        temperature: 0.3,
        downfall: 0.8,
        sky_color: 8168447,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const OLD_GROWTH_SPRUCE_TAIGA: Biome = Biome {
        name: "old_growth_spruce_taiga",
        has_precipitation: true,
        temperature: 0.2,
        downfall: 0.8,
        sky_color: 8233983,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const PALE_GARDEN: Biome = Biome {
        name: "pale_garden",
        has_precipitation: true,
        temperature: 0.7,
        downfall: 0.8,
        sky_color: 12171705,
        fog_color: 8484720,
        water_color: 7768221,
        water_fog_color: 5597568,
        foliage_color: Some(8883574),
        grass_color: Some(7832178),
        creature_spawn_probability: None,
    };
    pub const PLAINS: Biome = Biome {
        name: "plains",
        has_precipitation: true,
        temperature: 0.8,
        downfall: 0.4,
        sky_color: 7907327,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const RIVER: Biome = Biome {
        name: "river",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SAVANNA: Biome = Biome {
        name: "savanna",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SAVANNA_PLATEAU: Biome = Biome {
        name: "savanna_plateau",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SMALL_END_ISLANDS: Biome = Biome {
        name: "small_end_islands",
        has_precipitation: false,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 0,
        fog_color: 10518688,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SNOWY_BEACH: Biome = Biome {
        name: "snowy_beach",
        has_precipitation: true,
        temperature: 0.1,
        downfall: 0.3,
        sky_color: 8364543,
        fog_color: 12638463,
        water_color: 4020182,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SNOWY_PLAINS: Biome = Biome {
        name: "snowy_plains",
        has_precipitation: true,
        temperature: 0.0,
        downfall: 0.5,
        sky_color: 8364543,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: Some(0.07),
    };
    pub const SNOWY_SLOPES: Biome = Biome {
        name: "snowy_slopes",
        has_precipitation: true,
        temperature: -0.3,
        downfall: 0.9,
        sky_color: 8560639,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SNOWY_TAIGA: Biome = Biome {
        name: "snowy_taiga",
        has_precipitation: true,
        temperature: -0.5,
        downfall: 0.4,
        sky_color: 8625919,
        fog_color: 12638463,
        water_color: 4020182,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SOUL_SAND_VALLEY: Biome = Biome {
        name: "soul_sand_valley",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 1787717,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SPARSE_JUNGLE: Biome = Biome {
        name: "sparse_jungle",
        has_precipitation: true,
        temperature: 0.9,
        downfall: 0.8,
        sky_color: 7842047,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const STONY_PEAKS: Biome = Biome {
        name: "stony_peaks",
        has_precipitation: true,
        temperature: 1.0,
        downfall: 0.3,
        sky_color: 7776511,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const STONY_SHORE: Biome = Biome {
        name: "stony_shore",
        has_precipitation: true,
        temperature: 0.2,
        downfall: 0.3,
        sky_color: 8233727,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SUNFLOWER_PLAINS: Biome = Biome {
        name: "sunflower_plains",
        has_precipitation: true,
        temperature: 0.8,
        downfall: 0.4,
        sky_color: 7907327,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const SWAMP: Biome = Biome {
        name: "swamp",
        has_precipitation: true,
        temperature: 0.8,
        downfall: 0.9,
        sky_color: 7907327,
        fog_color: 12638463,
        water_color: 6388580,
        water_fog_color: 2302743,
        foliage_color: Some(6975545),
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const TAIGA: Biome = Biome {
        name: "taiga",
        has_precipitation: true,
        temperature: 0.2,
        downfall: 0.8,
        sky_color: 8233983,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const THE_END: Biome = Biome {
        name: "the_end",
        has_precipitation: false,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 0,
        fog_color: 10518688,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const THE_VOID: Biome = Biome {
        name: "the_void",
        has_precipitation: false,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const WARM_OCEAN: Biome = Biome {
        name: "warm_ocean",
        has_precipitation: true,
        temperature: 0.5,
        downfall: 0.5,
        sky_color: 8103167,
        fog_color: 12638463,
        water_color: 4445678,
        water_fog_color: 270131,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const WARPED_FOREST: Biome = Biome {
        name: "warped_forest",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 1705242,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const WINDSWEPT_FOREST: Biome = Biome {
        name: "windswept_forest",
        has_precipitation: true,
        temperature: 0.2,
        downfall: 0.3,
        sky_color: 8233727,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const WINDSWEPT_GRAVELLY_HILLS: Biome = Biome {
        name: "windswept_gravelly_hills",
        has_precipitation: true,
        temperature: 0.2,
        downfall: 0.3,
        sky_color: 8233727,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const WINDSWEPT_HILLS: Biome = Biome {
        name: "windswept_hills",
        has_precipitation: true,
        temperature: 0.2,
        downfall: 0.3,
        sky_color: 8233727,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const WINDSWEPT_SAVANNA: Biome = Biome {
        name: "windswept_savanna",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: None,
        grass_color: None,
        creature_spawn_probability: None,
    };
    pub const WOODED_BADLANDS: Biome = Biome {
        name: "wooded_badlands",
        has_precipitation: false,
        temperature: 2.0,
        downfall: 0.0,
        sky_color: 7254527,
        fog_color: 12638463,
        water_color: 4159204,
        water_fog_color: 329011,
        foliage_color: Some(10387789),
        grass_color: Some(9470285),
        creature_spawn_probability: Some(0.04),
    };
    #[doc = r" Try to parse a `Biome` from a resource location string."]
    pub fn from_name(name: &str) -> Option<&'static Self> {
        let name = name.strip_prefix("minecraft:").unwrap_or(name);
        match name {
            "badlands" => Some(&Self::BADLANDS),
            "bamboo_jungle" => Some(&Self::BAMBOO_JUNGLE),
            "basalt_deltas" => Some(&Self::BASALT_DELTAS),
            "beach" => Some(&Self::BEACH),
            "birch_forest" => Some(&Self::BIRCH_FOREST),
            "cherry_grove" => Some(&Self::CHERRY_GROVE),
            "cold_ocean" => Some(&Self::COLD_OCEAN),
            "crimson_forest" => Some(&Self::CRIMSON_FOREST),
            "dark_forest" => Some(&Self::DARK_FOREST),
            "deep_cold_ocean" => Some(&Self::DEEP_COLD_OCEAN),
            "deep_dark" => Some(&Self::DEEP_DARK),
            "deep_frozen_ocean" => Some(&Self::DEEP_FROZEN_OCEAN),
            "deep_lukewarm_ocean" => Some(&Self::DEEP_LUKEWARM_OCEAN),
            "deep_ocean" => Some(&Self::DEEP_OCEAN),
            "desert" => Some(&Self::DESERT),
            "dripstone_caves" => Some(&Self::DRIPSTONE_CAVES),
            "end_barrens" => Some(&Self::END_BARRENS),
            "end_highlands" => Some(&Self::END_HIGHLANDS),
            "end_midlands" => Some(&Self::END_MIDLANDS),
            "eroded_badlands" => Some(&Self::ERODED_BADLANDS),
            "flower_forest" => Some(&Self::FLOWER_FOREST),
            "forest" => Some(&Self::FOREST),
            "frozen_ocean" => Some(&Self::FROZEN_OCEAN),
            "frozen_peaks" => Some(&Self::FROZEN_PEAKS),
            "frozen_river" => Some(&Self::FROZEN_RIVER),
            "grove" => Some(&Self::GROVE),
            "ice_spikes" => Some(&Self::ICE_SPIKES),
            "jagged_peaks" => Some(&Self::JAGGED_PEAKS),
            "jungle" => Some(&Self::JUNGLE),
            "lukewarm_ocean" => Some(&Self::LUKEWARM_OCEAN),
            "lush_caves" => Some(&Self::LUSH_CAVES),
            "mangrove_swamp" => Some(&Self::MANGROVE_SWAMP),
            "meadow" => Some(&Self::MEADOW),
            "mushroom_fields" => Some(&Self::MUSHROOM_FIELDS),
            "nether_wastes" => Some(&Self::NETHER_WASTES),
            "ocean" => Some(&Self::OCEAN),
            "old_growth_birch_forest" => Some(&Self::OLD_GROWTH_BIRCH_FOREST),
            "old_growth_pine_taiga" => Some(&Self::OLD_GROWTH_PINE_TAIGA),
            "old_growth_spruce_taiga" => Some(&Self::OLD_GROWTH_SPRUCE_TAIGA),
            "pale_garden" => Some(&Self::PALE_GARDEN),
            "plains" => Some(&Self::PLAINS),
            "river" => Some(&Self::RIVER),
            "savanna" => Some(&Self::SAVANNA),
            "savanna_plateau" => Some(&Self::SAVANNA_PLATEAU),
            "small_end_islands" => Some(&Self::SMALL_END_ISLANDS),
            "snowy_beach" => Some(&Self::SNOWY_BEACH),
            "snowy_plains" => Some(&Self::SNOWY_PLAINS),
            "snowy_slopes" => Some(&Self::SNOWY_SLOPES),
            "snowy_taiga" => Some(&Self::SNOWY_TAIGA),
            "soul_sand_valley" => Some(&Self::SOUL_SAND_VALLEY),
            "sparse_jungle" => Some(&Self::SPARSE_JUNGLE),
            "stony_peaks" => Some(&Self::STONY_PEAKS),
            "stony_shore" => Some(&Self::STONY_SHORE),
            "sunflower_plains" => Some(&Self::SUNFLOWER_PLAINS),
            "swamp" => Some(&Self::SWAMP),
            "taiga" => Some(&Self::TAIGA),
            "the_end" => Some(&Self::THE_END),
            "the_void" => Some(&Self::THE_VOID),
            "warm_ocean" => Some(&Self::WARM_OCEAN),
            "warped_forest" => Some(&Self::WARPED_FOREST),
            "windswept_forest" => Some(&Self::WINDSWEPT_FOREST),
            "windswept_gravelly_hills" => Some(&Self::WINDSWEPT_GRAVELLY_HILLS),
            "windswept_hills" => Some(&Self::WINDSWEPT_HILLS),
            "windswept_savanna" => Some(&Self::WINDSWEPT_SAVANNA),
            "wooded_badlands" => Some(&Self::WOODED_BADLANDS),
            _ => None,
        }
    }
    #[doc = r" Check if this biome has precipitation (rain/snow)."]
    pub const fn has_precipitation(&self) -> bool {
        self.has_precipitation
    }
    #[doc = r" Get the temperature of this biome."]
    pub const fn temperature(&self) -> f64 {
        self.temperature
    }
    #[doc = r" Get the downfall (humidity) of this biome."]
    pub const fn downfall(&self) -> f64 {
        self.downfall
    }
    #[doc = r" Check if this biome is cold (temperature < 0.2)."]
    pub const fn is_cold(&self) -> bool {
        self.temperature < 0.2
    }
    #[doc = r" Check if this biome is hot (temperature > 1.0)."]
    pub const fn is_hot(&self) -> bool {
        self.temperature > 1.0
    }
    #[doc = r" Check if this biome is wet (downfall > 0.5)."]
    pub const fn is_wet(&self) -> bool {
        self.downfall > 0.5
    }
    #[doc = r" Check if this biome is dry (downfall < 0.2)."]
    pub const fn is_dry(&self) -> bool {
        self.downfall < 0.2
    }
}
